/**************************************************************************
 *
 *        Copyright (c) 2007-2008 by Sunplus mMedia Inc., Ltd.
 *
 *  This software is copyrighted by and is the property of Sunplus
 *  mMedia Inc., Ltd. All rights are reserved by Sunplus mMedia
 *  Inc., Ltd. This software may only be used in accordance with the
 *  corresponding license agreement. Any unauthorized use, duplication,
 *  distribution, or disclosure of this software is expressly forbidden.
 *
 *  This Copyright notice MUST not be removed or modified without prior
 *  written consent of Sunplus mMedia Inc., Ltd.
 *
 *  Sunplus mMedia Inc., Ltd. reserves the right to modify this
 *  software without notice.
 *
 *  Sunplus mMedia Inc., Ltd.
 *  19-1, Innovation First Road, Science-Based Industrial Park,
 *  Hsin-Chu, Taiwan, R.O.C.
 *
 **************************************************************************/
#ifndef __OSD_API_H__
#define __OSD_API_H__

/**************************************************************************
 *                           C O N S T A N T S
 **************************************************************************/

/**************************************************************************
 *				 F U N C T I O N	D E C L A R A T I O N S
 **************************************************************************/
void osdPageDrawUpdate(UINT16 idx[], UINT8 attr[]);
UINT8 osdCharDraw(UINT8 x, UINT8 y, UINT16 idx, UINT8 attr);
void osdClear(UINT16 idx, UINT8 attr);
void osdRamClear(void);
void osdStrDraw(UINT8 x, UINT8 y, UINT8 *str, UINT8 attr);
void osdStrDraw16(UINT8 x, UINT8 y, UINT16 *str, UINT8 attr);
void osdLocalFlashSet(UINT8 level);
void osdLocalBlendSet(UINT8 level);
void osdGlobalBlendSet(UINT8 mode, UINT8 level);
void osdSelWinSet(UINT16 x0, UINT16 y0, UINT16 w, UINT16 h, UINT8 depth, UINT8 color_idx);
void osdZoomSet(UINT8 xfac, UINT8 yfac);
void osdRegUpdate(void);
/* MISC */
void UI_PrintOSDULong(UINT32 , UINT8 , UINT8, UINT8 );
void osdInit(UINT8 panel);
void LoadOsd2Dram(void);
void osdWinSet(UINT8);
void osdFuncSet(void);
void osdLayoutAttrGet(UINT8* hNum, UINT8* vNum);
void osdLayoutAttrSet(UINT8 hNum, UINT8 vNum);
void osdFontSizeSet(UINT8 width, UINT8 height);

#endif //__OSD_API_H__

